<?php foreach ($designers->result() as $d): ?>
    <div class="designer">
        <div class="designer-image">
            <a href="<?php echo base_url(); ?>designers/view/<?php echo $d->id; ?>">
                <img src="<?php echo base_url() . "photo/designers/main/" . $d->main_photo; ?>" />
            </a>
        </div>
        <div class="designer-title">
            <h2><a href="<?php echo base_url(); ?>designers/view/<?php echo $d->id; ?>"><?php echo $d->nick_name; ?></a></h2>
        </div>
        <div class="designer-desc">
            <p><?php echo $d->city; ?></p>
        </div>
    </div>
<?php endforeach; ?>